/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Adam Dickinson
 */
public class MailServer {
    
  
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {        
           
            // modified by terry
            SMTPListener smtp = new SMTPListener();
            POPListener pop = new POPListener();
            HTTPListener http = new HTTPListener();
            
            Thread SMTPthread = new Thread(smtp);
            Thread POPthread = new Thread(pop);
            Thread HTTPthread = new Thread(http);
            
            SMTPthread.start();
            POPthread.start();
            HTTPthread.start();
            
        } catch(Exception ex) {
            System.err.println(ex.getMessage());
        }
    }
}
